package com.lw.mybatis.spring.service.impl;

import com.lw.mybatis.spring.mapper.UserMapper;
import com.lw.mybatis.spring.pojo.TbUser;
import com.lw.mybatis.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/7 8:45
 */
@Component
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public TbUser fingById(Long id) {
        return userMapper.findByUserId(id);

    }
}
